// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.AmazonOrderListSon;
import com.fowo.api.model.amazon.order.list.son.AmazonOrderListSonItemVo;
import com.fowo.api.model.amazon.order.list.son.AmazonOrderListSonSearchParamPo;
import com.fowo.api.model.amazon.order.list.son.AmazonOrderListSonVo;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AmazonOrderListSonMapper
  extends BaseMapper<AmazonOrderListSon> {
  Page<AmazonOrderListSonItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") AmazonOrderListSonSearchParamPo search
  );
  List<OptionItem<AmazonOrderListSonItemVo>> searchOptions(
    @Param("search") AmazonOrderListSonSearchParamPo search
  );
  List<AmazonOrderListSonItemVo> search(
    @Param("search") AmazonOrderListSonSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") AmazonOrderListSonSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") AmazonOrderListSonSearchParamPo search);
  Long getIdByAsin(@Param("asin") String asin);

  List<Long> getIdsByAsin(@Param("list") List<String> list);

  String getAsinById(@Param("id") Long id);

  List<String> getAsinByIds(@Param("ids") List<Long> ids);
  AmazonOrderListSonVo selectVoById(@Param("id") Long id);
}
